package git.yyge.luajava.utils;

/**
 * 提供字符串反转工具给lua 测试在lua中调用
 */
public class StringUtils {

    public static String reverse(String input) {
        StringBuilder reversed = new StringBuilder();
        for (int i = input.length() - 1; i >= 0; i--) {
            reversed.append(input.charAt(i));
        }
        return reversed.toString();
    }
}
